<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/commons/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   		<script type="text/javascript">
			var applicationId = "${applicationId}";
   		</script>
   		<%@include file="/commons/resource.jsp" %>
        <script type="text/javascript" src="${ctx}/static/js/app/dataPerission.js"></script>
  </head>
	<body class="easyui-layout">
     <!-- Search panel start -->
 	 <div class="ui-search-panel" region="north" style="height: 70px;" title="搜索框" data-options="striped: true,collapsible:true,iconCls:'icon-search',border:false">  
	 	 <form id="searchForm">
	 	 	<p class="ui-fields">
	 	 	    <label class="ui-label">数据权限名:</label><input name="dataPermissionName" class="easyui-box ui-text" style="width:100px;">
	        </p>
	        <a href="#" id="btn-search" class="easyui-linkbutton" iconCls="icon-search">搜索</a>
	     </form>  
     </div> 
     <!--  Search panel end -->
     <!-- DataList  -->
     <div region="center" border="false" >
     	<div id="toolbar">
     	   
     				<a href="#" class="easyui-linkbutton" iconCls="icon-add" id="addBtn" plain="true">新增</a>
     		
     				<a href="#" class="easyui-linkbutton" iconCls="icon-edit" id="editBtn" plain="true">编辑</a>
     	
     				<a href="#" class="easyui-linkbutton" iconCls="icon-remove" id="deleteBtn" plain="true">删除</a>
		
		</div>
     	<table id="data-list"></table>
     </div>

     <!-- Edit Form -->
     <div id="edit-win" class="easyui-dialog" title="数据权限管理页面" data-options="closed:true,iconCls:'icon-save',modal:true" style="width:600px;height:400px;">  
     	<form id="editForm" class="ui-form" method="post">  
     		 <input class="hidden" type="text" name="roleId">
     		 <input class="hidden" type="text" name="applicationId" value="${applicationId}">
     		 <input class="hidden" type="text" name="dataValue"  id="dataValueSave">
     		  <input class="hidden"  type="text" name="dataPermissionId">
     		  <input class="hidden" type="text" name="dataNameValue">
     		 <div class="ui-edit">
	     	   <div class="ftitle">添加数据权限信息</div>
	          <!--  <div class="fitem">
	               <label>所属系统:</label>
	               <input class="easyui-validatebox" type="text" name="dataPermissionId" data-options="required:true">
	           </div> -->  
	           <div class="fitem">  
	               <label>数据权限名称:</label>  
	               <input class="easyui-validatebox" type="text" name="dataPermissionName" data-options="required:true">
	           </div>
	            <!-- <div class="fitem">
	               <label>数据权限键值:</label>  
	               <input class="easyui-validatebox" type="text" name="dataValue">
	           </div> -->
	            <div class="fitem">
	               <label>描述:</label>  
	               <input class="easyui-textbox" data-options="multiline:true" name="dataPermissionDesc" style="width:300px;height:60px">
	           </div>
	            <div class="fitem">
	               <label>范围类型:</label>  
	               <!-- <select id="rangeType" class="easyui-combobox" name="rangeType" style="width:100px;height:20px">
				    <option value="2" selected ="selected">省</option>
				    <option value="3">市</option>
				    <option value="4">区</option>
				    <option value="5">小区</option>
				  </select> -->
				  <input class="easyui-combobox" name="rangeType" id="rangeType" style="width:100px;height:20px" data-options="
					valueField: 'label',
					textField: 'value',
					data: [{
						label: '2',
						value: '省',
						selected:true
					},{
						label: '3',
						value: '市'
					},{
						label: '4',
						value: '区、县'
					},{
						label: '5',
						value: '小区'
					}]" />
	           </div>
	            <div class="fitem">
	               <label>地区:</label>  
	               <input  id="provinceCode" class="easyui-combobox" name="provinceCode" style="width:100px;height:20px">
	               <input  id="cityCode" class="easyui-combobox" name="cityCode" style="width:100px;height:20px">
	               <input  id="townCode" class="easyui-combobox" name="townCode" style="width:100px;height:20px">
	             <!--   <input  id="estate" class="easyui-combobox" name="estate" style="width:100px;height:20px"> -->
	           </div>
	           <div id="estate" class="fitem" style="padding-left:100px;">
	          
	           </div>
	         </div>
     	</form>
  	 </div>
  	 
  	
  	 
  </body>
</html>
